<?php



class Social_Adapter_Twitter extends Social_Adapter_OAuthAbstract
{

	/**
	 * @var string
	 */
	protected $_serviceId = 'twitter';

	/**
	 * @return void
	 */
	function __construct()
	{
		require_once LEGACY_DIR . 'social/twitter/twitter.php';
	}

	/**
	 * @return Twitter
	 */
	function getClientApi()
	{
		
		$key = Nuo::getConfig('twitter','key');
		$secret = Nuo::getConfig('twitter','secret');
		

		if (NULL == $this -> _clientApi)
		{
			$clientApi = new Twitter($key, $secret);

			$this -> _clientApi = $clientApi;
		}

		return $this -> _clientApi;
	}

}
